const Sequelize = require('sequelize')

const MallSequelize = new Sequelize(
  'campus',  //数据库名
  'root',  //用户名
  'root',  //密码
  {
    host: 'localhost',   //主机地址
    dialect: 'mysql',    //数据库类型
    port: 3306,          //数据库端口
    define: {
      timestamps: true, // 取消自动添加时间戳
      underscored: true, // 字段以下划线分割
    },
    operatorsAliases: true
  }
)

module.exports = {
  MallSequelize
}